<template>
	<view></view>
</template>

<script>
	export default {
		data() {
			return {
			
			}
		},
		onLoad() {
			uni.showLoading({
				title: '加载中'
			});
			
			setTimeout(function () {
				uni.hideLoading();
			}, 2000);
			
			//首屏加载检查TOKEN 直接跳转 避免闪烁
			let token = uni.getStorageSync('token');
			if (!token) {
				uni.reLaunch({
					url: '/pages/index/index'
				})
			}else{
				uni.reLaunch({
					url: '/pages/index/index'
				})
			}
			
		}
	}
</script>
<style scoped lang="scss">
	
</style>